from selenium import webdriver
from selenium.webdriver.common.by import By

class ShopPage():
    def __init__(self,driver):
        self.driver = driver
    search_input_loc = (By.CLASS_NAME, 'search_usercenter_text')
    search_button_loc = (By.CLASS_NAME, 'search_usercenter_btn')
    def test_search(self,value):
        self.driver.find_element(*self.search_input_loc).send_keys(value)
        self.driver.find_element(*self.search_button_loc).click()